package fun.easycode.jointblock.manager;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author xuzhe
 */
@FeignClient(name = "collegeClient",
        url = "http://api.cd0755d8e9df9425a8d1653d7ac3a863d.cn-beijing.alicontainer.com/course-api")
public interface CollegeClient {

    /**
     * 获取学院列表（是否隐藏或关闭 ）
     */
    @GetMapping("/consumer/colleges")
    ResponseEntity<List<CollegeDto>> getColleges(@RequestParam Boolean hide);
}
